<html>
  <head>
    <title><g:layoutTitle default="Grails" /></title>
    <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
    <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
  <g:layoutHead />
  <g:javascript library="application" />
</head>
<body>
  <div id="spinner" class="spinner" style="display:none;">
    <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
  </div>
  <div class="logo">
    <img src="${resource(dir:'images',file:'sams.png')}" alt="Sams" />
  </div>

<% if ( session.user != null ) { %>
  <div class="logo">
    <img alt="user thumbnail" height="50" width="50" src="${createLink(controller:'user', action:'avatar_image', id:session.user?.id)}"/>
  </div>
<% } %>

<g:layoutBody />		
</body>	
</html>